﻿namespace Yipusoft.BaseDoc.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Runtime.InteropServices;
    using Yipusoft.BaseDoc.DAL;
    using Yipusoft.BaseDoc.Model;

    public class Progress
    {
        private static readonly Yipusoft.BaseDoc.DAL.Progress dal = new Yipusoft.BaseDoc.DAL.Progress();

        public static bool AddProgress(ProgressInfo progressinfo)
        {
            return dal.AddProgress(progressinfo);
        }

        public static bool DeleteProgress(string departmentID)
        {
            return dal.DeleteProgress(departmentID);
        }

        public static List<ProgressInfo> GetList(string where)
        {
            return dal.GetList(where);
        }

        public static List<ProgressInfo> GetList(string where, int pageIndex, int pageSize, out int count)
        {
            return dal.GetList(where, pageIndex, pageSize, out count);
        }

        public static int GetMaxID(string DepartmentID)
        {
            return dal.GetMaxID(DepartmentID);
        }

        public static ProgressInfo GetProgress(string DepartmentID)
        {
            return dal.GetProgress(DepartmentID);
        }

        public static bool UpdateProgress(ProgressInfo progressinfo)
        {
            return dal.UpdateProgress(progressinfo);
        }
    }
}

